const express = require('express')
const router = express.Router()
const configController = require('@/controllers/config.controller')

/**
 * 配置信息查询
 * @route GET /config
 * @group 配置信息
 * @returns {object} 200
 * @returns {Error}  default - Unexpected error
 */
router.get('/', configController.getClientConfig)

/**
 * 友情链接列表查询
 * @route GET /config/friend-link
 * @group 配置信息
 * @returns {object} 200
 * @returns {Error}  default - Unexpected error
 */
router.get('/friend-link', configController.getFriendLink)

module.exports = router
